import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from 'src/entities/User.entity';
import { UserController } from './user.controller';
import { UserService } from './user.service';

/* 组装 */

@Module({
  imports: [
    // 注册实体类 注册表
    TypeOrmModule.forFeature([User])
  ],
  controllers: [UserController],
  // 提供者
  providers: [UserService]
})

export class UserModule {}